import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index'
import { store, key } from './store'
import { directives } from '@/utils/directives';
import { i18n } from '@/i18n';
import Tools from '@/utils/tools';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import '@/theme/index.styl';
import mitt from 'mitt';	//全局时间 emit on

const app = createApp(App);

directives(app)
Tools.elSvg(app)

app.use(router)
	.use(store,key)
	.use(ElementPlus, { i18n: i18n.global.t })
	.use(i18n)
	.mount('#app')

app.config.globalProperties.mittBus = mitt();